package keeto.com.vn.classified.task;

import java.io.IOException;

import keeto.com.vn.classified.core.ClassifiedCore;
import keeto.com.vn.classified.core.ClassifiedListener;

import org.apache.http.client.ClientProtocolException;
import org.json.JSONException;

public class TaskUpdateViewProduct extends AbstractTask{
	private String PCode;
	
	public TaskUpdateViewProduct(ClassifiedListener listener,ClassifiedCore core, String pCode) {
		super(listener, core);
		PCode = pCode;
	}

	@Override
	public void run() throws ClientProtocolException, JSONException,IOException {
		String request = PCode;
		String reponse = json.finishUpdateView(request);
		for(ClassifiedListener mListener:listeners){
			mListener.finishUpdateView(reponse);
		}
	}

	@Override
	public void timeoutCallback() {
		
	}

}
